
#CFLAGS+=-O2
#LDFLAGS+=-O2 -lssl
LDFLAGS+=-O2
LDFLAGS2+=-lcrypto
#STUNLIB=libstun.a

#
# Alternatively, for debugging.
#
CFLAGS+=-g -O -Wall 
LDFLAGS+=-g -O -Wall
# for solaris
#LDFLAGS+= -lnsl -lsocket


all: client 

clean:
	- rm *.o client

client: client.o stun_udp.o stun_packet.o
	$(CC) $(LDFLAGS) -o $@  $^ $(LDFLAGS2)

%.o:%.c
	$(CC)  -c $(CFLAGS) $< -o $@

#%:RCS/%
#	co $@

# Dependancies
client.o: stun_udp.h stun_packet.h
stun_udp.o: stun_udp.h stun_packet.h
stun_packet.o: stun_packet.h
